link_args = []

if host_machine.system() == 'darwin'
  dc = meson.get_compiler('d')
  if dc.get_id() == 'dmd'
    link_args += '-L=-framework'
    link_args += '-L=Foundation'
  endif
endif

libmlib = static_library('mlib',
  files(
    'configparser.d',
    'directories.d',
    'search_params.d',
    'term.d',
    'trash.d'
  ),
  link_args: link_args
)
